/* eslint-disable import/prefer-default-export */
import fly from '@/jslibs/dk-flyio'

// 获取会员等级列表
export const getUserGradeList = () => fly.get('/mini/user-score/member-grade')
// 用户积分明细
export const getUserScoresList = params => fly.get('mini/user-score/user-scores', params)
// 任务列表
export const getUserTaskTypes = () => fly.get('mini/user-score/task-types')
// 任务详情
export const getUserScoreDetail = params => fly.get('mini/user-score/detail', params)
// 会员等级
export const getUserMemberGrade = params => fly.get(`/mini/user-score/member-grade/detail/${params}`)
// 完成任务
export const finishUserTask = params => fly.get(`mini/user-score/finish-task/${params}`)
// 推荐同事背景图
export const getRecommendDetails = () => fly.get('/mini/account/recommend-detail')
// 会员规则详情
export const getUserGradeDetails = () => fly.get('/mini/user-score/member-grade-detail')
// 刷新二维码
export const refreshQrcode = () => fly.get('/mini/account/refresh-recommend-detail')
